package com.itheima.mapper.backend;

import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.CheckItem;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CheckGroupMapper {

    @Delete("delete from t_checkgroup where id=#{id}")
    void deleteById(Integer id);

    List<CheckGroup> list(String name);

    @Select("select * from t_checkgroup")
    List<CheckGroup> findAll();

    @Select("select * from t_checkgroup where id=#{id}")
    CheckGroup findById(Integer id);
}
